<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	
	var confirmEditcheckStockInfoUrl="{:U('Stock/confirm_editcheckStockInfo')}";//确认上架
	var checkStockInfopushUrl="{:U('Pushapi/checkStockInfo')}";//推送库存信息
	var checkStockInfoInfoUrl="{:U('Order/confirm_arrival')}"//详情链接
	<!-- using('../../../default/js/checkStockInfo.js'); -->
	
	var order_id="{:I('id')}";
	var getcheckStockInfoUrl="{:U('Stock/get_checkStockInfo')}";//商品列表
	
	var excelUrl="{:U('Import/importCheckStockInfo',array('order_id'=>I('id')))}";//导入EXCEL
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/checkStockInfo.js"></script>

	<table id="checkStockInfoDatagrid" toolbar="#checkStockInfo_tb"></table>
    <!-- 搜索栏 -->
    <div id="checkStockInfo_tb">
        <form id="checkStockInfoSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="checkStockInfoObj.showAll()">全部</a>     
            商品编码:<input class="easyui-textbox" name="checkStockInfo_no" style="width:150px;height:30px;"> 
			商品名称:<input class="easyui-textbox" name="checkStockInfo_name" style="width:150px;height:30px;"> 
			条形码:<input class="easyui-textbox" name="bar_code" style="width:150px;height:30px;">
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>

        
		<a href="javascript:void(0)" onclick="checkStockInfoObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
		<a href="javascript:void(0)" onclick="checkStockInfoObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="checkStockInfoObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
		<a href="javascript:void(0)" onclick="checkStockInfoObj.excelBar()" class="easyui-linkbutton" data-options="iconCls:'icon-page_excel',plain:true">导入EXCEL</a>
		<!-- <a href="javascript:void(0)" onclick="checkStockInfoObj.pushBar()" class="easyui-linkbutton" data-options="iconCls:'icon-world_go',plain:true">推送</a> -->
    </div>
    <!-- /搜索栏 -->
	<!-- 编辑-->
    <div id="checkStockInfoEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#checkStockInfoEditButtons"  modal="true">
        <form id="checkStockInfoEditForm" method="post" novalidate>          
            <div class="fitem">
                <label>商品编码</label>
                <input name="id" type="hidden" />
                <input name="goods_no" class="easyui-textbox" data-options="disabled:true,height:30,editor:'numberbox'" />
            </div>
            <div class="fitem">
                <label>商品名称</label>
                <input name="goods_name" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>条形码</label>
                <input name="bar_code" class="easyui-textbox" data-options="disabled:true,required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
			<div class="fitem">
                <label>规格</label>
                <input name="goods_spec" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>盘库库存数量</label>
                <input name="check_amount" class="easyui-textbox" data-options="height:30" />
            </div>
			<!-- <div class="fitem"> -->
                <!-- <label>盘库合格品</label> -->
                <!-- <input name="check_conforming_p" class="easyui-textbox" data-options="height:30" /> -->
            <!-- </div> -->
			<div class="fitem">
                <label>盘库残次品</label>
                <input name="check_nonconforming_p" class="easyui-textbox" data-options="height:30" />
            </div>
			<div class="fitem">
                <label>盘库报废品</label>
                <input name="check_scrap_one" class="easyui-textbox" data-options="height:30" />
            </div>
			<div class="fitem">
                <label>差异原因</label>
                <input name="remark" class="easyui-textbox" data-options="height:100,multiline:true" />
            </div>
        </form>
    </div>
    <div id="checkStockInfoEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="checkStockInfoObj.save('{:U('Stock/confirm_editcheckStockInfo')}')" style="width:90px">确认</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#checkStockInfoEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->  
</body>